package com.perceptivesoftware.security;

import org.springframework.dao.DataAccessException;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Component;

/**
 * Loads the UserDetails for the given Username.
 *
 * <p/>Copyright 2012 Perceptive Software
 * <p/>Project: Perceptive Licensing
 * <p/>Confidential and Proprietary
 *
 * @author Sean Langford
 *
 */
@Component
public class PerceptiveCasUserService implements UserDetailsService
{

	public UserDetails loadUserByUsername(String username)
			throws UsernameNotFoundException, DataAccessException
	{
		return new PerceptiveUserDetails(username);
	}

}
